/**
 * 功能描述 表单
 */

define(function (require, exports, module){
	var Form = require("form");
	var store =require("store");
	var activeUser = store.get("user");
	var instance = {
		initComponent: function (params,widget){
			var form=new Form({
				parentNode:".J-form",
				show:false,
				model:{
					id:"planItem",
					defaultButton:false,
					layout : "3_1",
					items:[{
						name:"destination",
						label:"目的地",
						type:"select",
						key:"pkDestination",
						value:"name",
					},{
						name:"checkInDate",
						label:"入住日期",
						type:"date",
						mode:"YYYY.MM.DD",
					},{
						name:"checkOutDate",
						label:"退房日期",
						type:"date",
						mode:"YYYY.MM.DD",
					},{
						name:"reserveDate",
						label:"预约日期",
						type:"date",
						mode:"YYYY.MM.DD",
					},{
						name:"operator",
						label:"预约人",
						type:"text",
					},{
						name:"pkUser",
						type:"hidden",
					},{
						name:"pkPlanItemGroup",
						type:"hidden",
					},{
						name:"version",
						type:"hidden",
					}]
				}
			});
			widget.set("form", form);
		}
	};
	module.exports = instance;
});